<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        body {
            background-color: #000;
        }
        .w {
            width: 660px;
            margin: 200px auto;
        }
        .pub {
            float: left;
            width: 200px;
            height: 300px;
            line-height: 300px;
            margin-right: 20px;
            text-align: center;
            background-color: #f7971e;
            color: #fff;
            font-weight: 700;
            font-size: 100px;
            border-radius: 15px;
        }
    </style>
</head>
<body>
    <div class="w">
        <div class="hours pub">00</div>
        <div class="minutes pub">00</div>
        <div class="seconds pub">00</div>
    </div>
    <script>
        var hours = document.querySelector('.hours');
        var minutes = document.querySelector('.minutes');
        var seconds = document.querySelector('.seconds');
        date();
        function date(){
            var date = new Date();
            var h = date.getHours();
            h = h <10? "0"+h : h;
            var min = date.getMinutes();
            min = min < 10 ? "0"+min : min;
            var s = date.getSeconds();
            s = s < 10 ? "0"+s : s;
            // var arr1 = ['零','一','二','三','四','五','六','七','八','九','十','十一','十二','十三','十四','十五','十六','十七','十八','十九','二十','二一','二二','二三','二四','二五','二六','二七','二八','二九','三十','三一','三二','三三','三四','三五','三六','三七','三八','三九','四十','四一','四二','四三','五四四','四五','四六','四七','四八','五四九','五十','五一','五二','五三','五四','五五','五六','五七','五八','五九','六十'];
            // s = arr1[s];
            hours.innerHTML = h;
            minutes.innerHTML = min;
            seconds.innerHTML = s;
        }
        var times = setInterval(function(){
            date();
        },1000);
    </script>
</body>
</html>